package business.ebi;

import entity.Commodity;

import java.sql.SQLException;
import java.util.List;

public interface CommodityEBI {

    boolean insert(Commodity commodity) throws SQLException;
    boolean delete(String cId) throws SQLException;
    boolean update(String oldcId,Commodity commodity) throws SQLException;
    Commodity search_id(String cId) throws SQLException;
    List<Commodity> search_name(String cName) throws SQLException;
    List<Commodity> findAll() throws SQLException;
}
